//
//  PostSupermarketOrFarmViewController.m
//  PeopleStreet
//
//  Created by 刘建峰 on 16/6/27.
//  Copyright © 2016年 yuf. All rights reserved.
//

#import "PostSupermarketOrFarmViewController.h"

@interface PostSupermarketOrFarmViewController ()
@property (weak, nonatomic) IBOutlet UIView *navView;
@property (weak, nonatomic) IBOutlet UIScrollView *scroView;

@end

@implementation PostSupermarketOrFarmViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    [self initViewLayout];
}

- (void)initViewLayout{
    [self adaptiveViewLayout:self.view];
    [self adaptiveViewLayout:self.navView];
    [self adaptiveViewLayout:self.scroView];

    _scroView.contentSize = flexibleSize(CGSizeMake(0, 505), NO);
}

- (IBAction)back:(id)sender {
    [self.navigationController  popViewControllerAnimated:YES];
}

#pragma mark == 发布供应
- (IBAction)postFarm:(id)sender {
    UIStoryboard *secondStroyBoard=[UIStoryboard storyboardWithName:@"FarmSupermarketStoryboard" bundle:nil];
    UIViewController *page = [secondStroyBoard instantiateViewControllerWithIdentifier:@"PostFarm"];
    [self.navigationController  pushViewController:page animated:YES];
}

#pragma mark == 发布求购
- (IBAction)postSupermarket:(id)sender {
    UIStoryboard *secondStroyBoard=[UIStoryboard storyboardWithName:@"FarmSupermarketStoryboard" bundle:nil];
    UIViewController *page = [secondStroyBoard instantiateViewControllerWithIdentifier:@"PostSupermarket"];
    [self.navigationController  pushViewController:page animated:YES];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


@end
